<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

</head>

<body id="page-top">

<script src=https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js></script>

<div onclick="test()">nihao</div>


<script>
    $(function () {


    });
    function test() {
        $.ajax({
            url      : '/index/index/test',
            data     : {}
        });
    }
</script>


</body>

</html>